package com.ellen.mac.chatdemo.comment;

/**
 * Created by aven on 2017/12/1.
 */

public class BaseApp {
    public static final String CONVERSATION_ID = "conversation_id";
    public static final String USERNAME = "user name";
    public static final String CLIENTID = "ClientId";
    public static final String CONVERSATION_ITEM_TABLE_NAME = "ConversationItem";

    //action
    public static final String ACTION_MEDIA_PLAY_PAUSE = "action_media_play_PASH";
    public static final String ACTION_MEDIA_NEXT = "action_media_NEXT";
    public static final String ACTION_MEDIA_PREVIOUS = "action_media_PREVIOUS";
    public static final String SHARE_MUSIC_POSITION = "music_position";

    private static String getPrefixConstant(String str) {
        return str;
    }

    /**
     * 参数传递的 key 值，表示对方的 id，跳转到 LCIMConversationActivity 时可以设置
     */
    public static final String PEER_ID = getPrefixConstant("peer_id");

    /**
     * LCIMConversationActivity 中头像点击事件发送的 action
     */
    public static final String AVATAR_CLICK_ACTION = getPrefixConstant("avatar_click_action");

    /**
     * LCIMConversationListFragment item 点击事件
     * 如果开发者不想跳转到 LCIMConversationActivity，可以在 Mainfest 里接管该事件
     */
    public static final String CONVERSATION_ITEM_CLICK_ACTION = getPrefixConstant("conversation_item_click_action");

    public static final String LCIM_LOG_TAG = getPrefixConstant("lcim_log_tag");


    // LCIMImageActivity
    public static final String IMAGE_LOCAL_PATH = getPrefixConstant("image_local_path");
    public static final String IMAGE_URL = getPrefixConstant("image_url");

    public static final String CHAT_NOTIFICATION_ACTION = getPrefixConstant("chat_notification_action");
}
